//
//  AddViewController.swift
//  yaokongqi
//
//  Created by HappyMilk 02 on 2017/9/27.
//  Copyright © 2017年 nike. All rights reserved.
//

import UIKit

class AddViewController: UIViewController {

    
    @IBOutlet weak var view_one: UIView!
    
    @IBOutlet weak var view_two: UIView!
    
    
    
    
    
    override func viewDidLoad() {
        super.viewDidLoad()

        view_one.layer.masksToBounds = true
        view_one.layer.cornerRadius = 10;
        view_one.layer.shadowColor = UIColor.darkGray.cgColor
        view_one.layer.shadowOffset = CGSize.init(width: 0, height: 4)
        view_one.layer.shadowRadius = 4
        view_one.layer.shadowOpacity = 0.8
        
        view_two.layer.masksToBounds = true
        view_two.layer.cornerRadius = 10;
        view_two.layer.shadowColor = UIColor.darkGray.cgColor
        view_two.layer.shadowOffset = CGSize.init(width: 0, height: 4)
        view_two.layer.shadowRadius = 4
        view_two.layer.shadowOpacity = 0.8
    
    }
    
    @IBAction func popvc(_ sender: Any) {
        self.navigationController?.popViewController(animated: true)
    }
    
    @IBAction func addTVControl(_ sender: Any) {
        UserDefaults.standard.set("1", forKey: "type")
        UserDefaults.standard.set("1", forKey: "first")
        self.navigationController?.popViewController(animated: true)
    }
    @IBAction func AirConditioner(_ sender: Any) {
        UserDefaults.standard.set("2", forKey: "type")
        UserDefaults.standard.set("1", forKey: "first")
        self.navigationController?.popViewController(animated: true)
    }
    
    

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
